package com.atguigu.day03.test;

import java.util.Scanner;

public class IfElseTest5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        //相亲找对象
        System.out.println("请输入你的身高(cm):");
        int height = sc.nextInt();
        System.out.println("请输入你的财富(单位:万):");
        double wealth = sc.nextDouble();
        System.out.println("你长的帅不帅(true/false):");
        boolean looks = sc.nextBoolean();
        if(height >= 180 && wealth >= 1000 && looks == true) {
            System.out.println("我这辈子非你不嫁");
        }else if(height == 180 || wealth == 1000 || looks == true){
            System.out.println("凑合过一过吧,这日子就这样了");
        }else{
            System.out.println("什么玩意,浪费时间");

            System.out.println("-----------------");

            System.out.println("很多年后");

            System.out.println("最终还是嫁给了你当初看不起的人");
        }

        //给婚后的儿子的成绩评个级-------------------------------------------------------->悄悄告诉你,婚前已经有了一个儿子

        System.out.println("婚后给你儿子的分数评个级吧!");
        System.out.println("--------------------------");
        System.out.println("请输入你儿子的成绩:");
        int grade = sc.nextInt();

        if(grade >= 0 && grade <= 100){
            //成绩正常,进行评级
            if(grade >= 90 && grade <= 100) {
                System.out.println("评分为A");
            }else if(grade >= 80 && grade < 90) {
                System.out.println("评分为B");
            }else if(grade >= 70 && grade < 80) {
                System.out.println("评分为C");
            }else if(grade >= 60 && grade < 70) {
                System.out.println("评分为D");
            }else{
                System.out.println("评分,还评分呢,打一顿吧");
            }
        }else{
            //成绩有异常,无法进行评级判断
            System.out.println("成绩不对啊,你在瞅瞅看>_<");
        }




        System.out.println("GameOver");

    }
}
